package demo.logback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogbackDemo {


    private static final Logger logger = LoggerFactory.getLogger(LogbackDemo.class);

    public static void main(String[] args) throws InterruptedException {
        System.out.println("------------- start! -------------");
        for (int i = 0; i < 10; i++) {
            String msg = "Hello " + i;
            logger.warn(msg);
            Thread.sleep(5000);
        }
        System.out.println("------------- end -------------");
    }
}
